/*
 * Purpose: Definitions for the ALS300 driver.
 */
#define COPYING2 Copyright (C) Hannu Savolainen and Dev Mazumdar 2000-2006. All rights reserved.
#define FNO1    374
#define FNO2    192
static unsigned int FreqTable1[FNO1] = {
  3997, 0x162,
  4017, 0x062,
  4038, 0x161,
  4058, 0x061,
  4079, 0x160,
  4100, 0x060,
  4121, 0x15F,
  4143, 0x05F,
  4165, 0x15E,
  4187, 0x05E,
  4209, 0x15D,
  4231, 0x05D,
  4254, 0x15C,
  4277, 0x05C,
  4300, 0x15B,
  4323, 0x05B,
  4347, 0x15A,
  4371, 0x05A,
  4395, 0x159,
  4419, 0x059,
  4444, 0x158,
  4469, 0x058,
  4494, 0x157,
  4520, 0x057,
  4545, 0x156,
  4571, 0x056,
  4598, 0x155,
  4625, 0x055,
  4652, 0x154,
  4679, 0x054,
  4707, 0x153,
  4735, 0x053,
  4763, 0x152,
  4792, 0x052,
  4821, 0x151,
  4850, 0x051,
  4880, 0x150,
  4910, 0x050,
  4941, 0x14F,
  4972, 0x04F,
  5003, 0x14E,
  5034, 0x04E,
  5066, 0x14D,
  5099, 0x04D,
  5132, 0x14C,
  5165, 0x04C,
  5199, 0x14B,
  5233, 0x04B,
  5268, 0x14A,
  5303, 0x04A,
  5339, 0x149,
  5375, 0x049,
  5411, 0x148,
  5448, 0x048,
  5486, 0x147,
  5524, 0x047,
  5563, 0x146,
  5602, 0x046,
  5641, 0x145,
  5682, 0x045,
  5723, 0x144,
  5764, 0x044,
  5806, 0x143,
  5849, 0x043,
  5892, 0x142,
  5936, 0x042,
  5981, 0x141,
  6026, 0x041,
  6072, 0x140,
  6119, 0x040,
  6166, 0x13F,
  6214, 0x03F,
  6263, 0x13E,
  6313, 0x03E,
  6364, 0x13D,
  6415, 0x03D,
  6467, 0x13C,
  6520, 0x03C,
  6574, 0x13B,
  6629, 0x03B,
  6684, 0x13A,
  6741, 0x03A,
  6799, 0x139,
  6857, 0x039,
  6917, 0x138,
  6978, 0x038,
  7039, 0x137,
  7102, 0x037,
  7166, 0x136,
  7231, 0x036,
  7298, 0x135,
  7365, 0x035,
  7434, 0x134,
  7504, 0x034,
  7576, 0x133,
  7648, 0x033,
  7723, 0x132,
  7798, 0x032,
  7876, 0x131,
  7954, 0x031,
  8000, 0x201,
  8035, 0x130,
  8117, 0x030,
  8200, 0x12F,
  8286, 0x02F,
  8373, 0x12E,
  8462, 0x02E,
  8553, 0x12D,
  8646, 0x02D,
  8741, 0x12C,
  8838, 0x02C,
  8938, 0x12B,
  9039, 0x02B,
  9143, 0x12A,
  9249, 0x02A,
  9358, 0x129,
  9470, 0x029,
  9584, 0x128,
  9700, 0x028,
  9820, 0x127,
  9943, 0x027,
  10069, 0x126,
  10198, 0x026,
  10330, 0x125,
  10466, 0x025,
  10605, 0x124,
  10749, 0x024,
  10896, 0x123,
  11048, 0x023,
  11203, 0x122,
  11363, 0x022,
  11528, 0x121,
  11698, 0x021,
  11872, 0x120,
  12052, 0x020,
  12238, 0x11F,
  12429, 0x01F,
  12626, 0x11E,
  12830, 0x01E,
  13040, 0x11D,
  13257, 0x01D,
  13482, 0x11C,
  13714, 0x01C,
  13955, 0x11B,
  14204, 0x01B,
  14463, 0x11A,
  14730, 0x01A,
  15008, 0x119,
  15297, 0x019,
  15597, 0x118,
  15909, 0x018,
  16000, 0x202,
  16233, 0x117,
  16572, 0x017,
  16924, 0x116,
  17292, 0x016,
  17676, 0x115,
  18078, 0x015,
  18499, 0x114,
  18939, 0x014,
  19401, 0x113,
  19886, 0x013,
  20396, 0x112,
  20993, 0x012,
  21498, 0x111,
  22096, 0x011,
  22727, 0x110,
  23395, 0x010,
  24104, 0x10F,
  24858, 0x00F,
  25659, 0x10E,
  26515, 0x00E,
  27429, 0x10D,
  28409, 0x00D,
  29461, 0x10C,
  30594, 0x00C,
  31818, 0x10B,
  32000, 0x203,
  33143, 0x00B,
  34584, 0x10A,
  36156, 0x00A,
  37878, 0x109,
  39772, 0x009,
  41805, 0x108,
  44191, 0x008,
  46791, 0x107,
  48000, 0x000
};


#if 0
static unsigned int FreqTable2[FNO2] = {
  3977, 0x231,
  4018, 0x330,
  4059, 0x230,
  4100, 0x32F,
  4146, 0x22F,
  4187, 0x32E,
  4231, 0x22E,
  4277, 0x32D,
  4323, 0x22D,
  4371, 0x32C,
  4419, 0x22C,
  4469, 0x32B,
  4520, 0x22B,
  4572, 0x32A,
  4625, 0x22A,
  4679, 0x329,
  4735, 0x229,
  4792, 0x328,
  4850, 0x228,
  4910, 0x327,
  4972, 0x227,
  5035, 0x326,
  5099, 0x226,
  5165, 0x325,
  5233, 0x225,
  5303, 0x324,
  5375, 0x224,
  5448, 0x323,
  5524, 0x223,
  5602, 0x322,
  5682, 0x222,
  5764, 0x321,
  5849, 0x221,
  5936, 0x320,
  6026, 0x220,
  6119, 0x31F,
  6215, 0x21F,
  6313, 0x31E,
  6415, 0x21E,
  6520, 0x31D,
  6629, 0x21D,
  6741, 0x31C,
  6857, 0x21C,
  6978, 0x31B,
  7102, 0x21B,
  7232, 0x31A,
  7365, 0x21A,
  7504, 0x319,
  7649, 0x219,
  7799, 0x318,
  7955, 0x218,
  8000, 0x201,
  8117, 0x317,
  8286, 0x217,
  8462, 0x316,
  8646, 0x216,
  8838, 0x315,
  9039, 0x215,
  9250, 0x314,
  9470, 0x214,
  9701, 0x313,
  9943, 0x213,
  10198, 0x312,
  10497, 0x212,
  10749, 0x311,
  11048, 0x211,
  11364, 0x310,
  11698, 0x210,
  12052, 0x30F,
  12429, 0x20F,
  12830, 0x30E,
  13258, 0x20E,
  13715, 0x30D,
  14205, 0x20D,
  14731, 0x30C,
  15297, 0x20C,
  15909, 0x30B,
  16000, 0x202,
  16572, 0x20B,
  17292, 0x30A,
  18078, 0x20A,
  18939, 0x309,
  19886, 0x209,
  20903, 0x308,
  22096, 0x208,
  23396, 0x307,
  24858, 0x207,
  26515, 0x306,
  28409, 0x206,
  30594, 0x305,
  32000, 0x203,
  33144, 0x205,
  36157, 0x304,
  39772, 0x204,
  44191, 0x303,
  48000, 0x000
};
#endif

#define VERSION_A       0
#define VERSION_B       1
#define VERSION_C       2
#define VERSION_D       3
#define VERSION_E       4
#define VERSION_F       5
#define VERSION_G       6
#define VERSION_H       7
#define VERSION_I       8
#define VERSION_J       9
#define VERSION_K       10
#define VERSION_L       11
#define VERSION_M       12
#define VERSION_N       13
#define VERSION_O       14
#define VERSION_P       15
